//
//  AsyncGetConnection.h
//  AsyncGetConnection
//
//  Created by ZhiPeng.Y on 15/9/9.
//  Copyright (c) 2015年 ZP.Y. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AsyncGetConnection : NSObject

@property (retain, nonatomic) NSMutableData *receiveData;
@property (copy, nonatomic) void(^dataBlock)(NSData *data);

+ (instancetype)asyncGetConnectionWithURL:(NSString *)url parameters:(NSDictionary *)parameters block:(void(^)(NSData *data))block;
+(instancetype)asyncPOSTConnectionWithURL:(NSString *)url parameters:(NSDictionary *)parameters block:(void (^)(NSData *data))block;
@end
